package com.yuanfeng.payment.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.yuanfeng.commoms.dto.order.ConsumeTradeParaDTO;
import com.yuanfeng.payment.entity.PayConsumeTradeEntity;
import com.yuanfeng.payment.vo.CallBackVO;

import java.util.List;

/**
 * @ClassName PayConsumeTradeService
 * @Description  交易订单表-强调唯一订单-充值则先创建充值订单
 * @Author cyp
 * @Date 2023-05-31 16:13:57
 * @Version 1.0
 **/
public interface PayConsumeTradeService extends IService<PayConsumeTradeEntity> {
     /**
      * 插入交易记录
      * @param ctp
      * @return
      */
     boolean insert(ConsumeTradeParaDTO ctp);
     /**
      * 促销订单
      *
      * @param token
      * @param orderId
      * @return
      */
     List<CallBackVO> treasureOrder(String token, String orderId);

    String queryOrderId(String orderId);
}
